import datetime
import re
from utils import mysql_pro
mysql_pro.orm_standby()
from database import models
#
# res_province_list = []
# list_f = models.Value_A.objects.all()
# province_list = []
# for data in list_f:
#     province_list.append(str(data.province))
# province_set = list(set(province_list))
# for province in province_set:
#     dict = {}
#     dict['value'] = models.Value_A.objects.filter(province=province).count()
#     dict['name'] = province
#     res_province_list.append(dict)
#
#
#
# print(res_province_list)


list_f = models.Value_A.objects.all().order_by("-res_time")
time_list = []

for data in list_f:

    if str(data.res_time) in time_list:
        pass
    else:
        time_list.append(str(data.res_time))

print(time_list)
